<?php

namespace app\common\model\dealer;

use app\common\model\BaseModel;

/**
 * 分销等级模型
 * Class Apply
 * @package app\common\model\dealer
 */
class Level extends BaseModel
{
    protected $name = 'dealer_level';


    /**
     * 获取商品详情
     * @param $id
     * @return static
     */
    public static function detail($id)
    {
        /* @var $model self */
        $model = (new static)->where(['id'=>$id,'is_delete'=>0])
            ->find();

        if (empty($model)) {
            return $model;
        }
        // 整理商品数据并返回
        return $model;
    }






}